package exception;

/**
 * 自定义异常
 */
public class Myexception  extends Exception{
    public Myexception(){

    }

    public Myexception(String message){
        super(message);
    }

}

class TestException{
    void test() throws Exception{
    ///
    }

    public static void main(String[] args){
        try {
            new TestException().test();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}


